a = [('a',1),('b',2)]
d = {}

for key,value in a:
    d[key] = value

print(d)
